import sys,locale
print sys.getdefaultencoding()
print locale.getdefaultlocale()
print sys.getfilesystemencoding()
print sys.stdin.encoding
print sys.stdout.encoding
try:
    locale.setlocale(locale.LC_ALL,"zh_CN.GB2312")
except locale.Error,e:
    print e
print locale.getlocale()
print locale.getdefaultlocale()
